<template>
  <div>
    我是第{{ massage.id }}子组件
    <ul>
      <li>名{{ massage.uname }}</li>
      <li>姓{{ massage.famliyName }}</li>
      <li>年龄{{ massage.age }}</li>
      <li>职业{{ massage.profess }}</li>
      <li><button @click="sub">age+1</button></li>
    </ul>
  </div>
</template>
 
<script>
export default {
  name: "",
  components: {},
  props: ["massage",'id'],
  data() {
    return {};
  },
  computed: {},
  watch: {},
  created() {},
  methods: {
    sub() {
      this.$emit("addAge", this.id, 1);
    },
  },
};
</script>

<style scoped>
</style>